package com.momo.hotel.service.impl;

import com.momo.hotel.dao.mapping.TbEvaluationMapper;
import com.momo.hotel.dao.mapping.ext.TbEvaluationMapperExt;
import com.momo.hotel.dao.pojo.TbEvaluation;
import com.momo.hotel.dao.pojo.ext.TbEvaluationExt;
import com.momo.hotel.service.EvaluationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class EvaluationServiceImpl implements EvaluationService {

    @Resource
    TbEvaluationMapperExt tbEvaluationMapperExt;

    @Override
    public Integer addEvaluation(TbEvaluation tbEvaluation) {
        return tbEvaluationMapperExt.addEvaluation(tbEvaluation);
    }

    @Override
    public List<TbEvaluationExt> selectEvaluationById(Integer roomId) {
        return tbEvaluationMapperExt.selectEvaluationById(roomId);
    }
}
